package icasue.tools.sqlhelper.adaptor.ibatis.mapper;

import icasue.reflect.annotations.NotNull;
import icasue.tools.sqlhelper.adaptor.annotation.AutoProvider;

import java.util.List;

/**
 * @Author: Qiao Hang
 * @CreateDate: 2021/11/12 上午9:39
 * @UpdateDate:
 * @Description:
 */
public interface Insert<JavaType> {
    @AutoProvider(method = "insert")
    void iinsert(@NotNull JavaType inst);

    @AutoProvider(method = "insertMulti")
    void insertMulti(@NotNull List<JavaType> instMulti);

    @AutoProvider(method = "insertSmart")
    void insertSmart(@NotNull JavaType inst);

    @AutoProvider(method = "insertSmartMulti")
    void insertSmartMulti(@NotNull List<JavaType> instMulti);
}
